package drds.common.db.xml_mapping.executor.loader;


import drds.common.db.xml_mapping.executor.BaseExecutor;
import drds.common.db.xml_mapping.executor.BatchResult;
import drds.common.db.xml_mapping.mapping.BindSql;
import drds.common.db.xml_mapping.mapping.Mapper;
import drds.common.db.xml_mapping.session.ResultHandler;
import drds.common.db.xml_mapping.session.RowBounds;

import java.sql.SQLException;
import java.util.List;

final class ClosedExecutor extends BaseExecutor {

  public ClosedExecutor() {
    super(null, null);
  }

  @Override
  public boolean isClosed() {
    return true;
  }

  @Override
  protected int doUpdate(Mapper mapper, Object parameter) throws SQLException {
    throw new UnsupportedOperationException("Not supported.");
  }

  @Override
  protected List<BatchResult> doFlushStatements(boolean isRollback) throws SQLException {
    throw new UnsupportedOperationException("Not supported.");
  }

  @Override
  protected <E> List<E> doQuery(Mapper mapper, Object parameter, RowBounds rowBounds, ResultHandler resultHandler, BindSql bindSql) throws SQLException {
    throw new UnsupportedOperationException("Not supported.");
  }


}
